import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import CompanyInfoScreen from "../screens/personalDetails/CompanyInfoScreen";
import EditCompanyInfoScreen from "../screens/personalDetails/EditCompanyInfoScreen";
import NormalUserScreen from "../screens/personalDetails/NormalUserScreen";
import ApplicationScreen from "../screens/personalDetails/ApplicationScreen";
import UpdatePassword from "../screens/personalDetails/UpadatePassword";
import SuppilerUser from "../screens/personalDetails/SuppilerUser";
import ManageSuppiler from "../screens/personalDetails/ManageSuppiler";
import { PersonMessageProvider } from "../context/personalDetails/personMessageContext";
import { CompanyInfoProvider } from "../context/personalDetails/companyInfoContext";
import { CompanySupplierProvider } from "../context/personalDetails/companySupplierContext";

const Stack = createNativeStackNavigator();

const PersonMessageNavigation = () => {
  return (
    <PersonMessageProvider>
      <CompanyInfoProvider>
        <CompanySupplierProvider>
          <Stack.Navigator>
            <Stack.Screen
              name="NormalUser"
              component={NormalUserScreen}
              options={{ headerShown: false }}
            />
            <Stack.Screen
              name="Application"
              component={ApplicationScreen}
              options={{ headerShown: false }}
            />
            <Stack.Screen
              name="UpdatePassword"
              component={UpdatePassword}
              options={{ headerShown: false }}
            />
            <Stack.Screen
              name="CompanyInfo"
              component={CompanyInfoScreen}
              options={{ headerShown: false }}
            />
            <Stack.Screen
              name="EditCompanyInfo"
              component={EditCompanyInfoScreen}
              options={{ headerShown: false }}
            />
            <Stack.Screen
              name="SuppilerUser"
              component={SuppilerUser}
              options={{ headerShown: false }}
            />
            <Stack.Screen
              name="ManageSuppiler"
              component={ManageSuppiler}
              options={{ headerShown: false }}
            />
          </Stack.Navigator>
        </CompanySupplierProvider>
      </CompanyInfoProvider>
    </PersonMessageProvider>
  );
};

export default PersonMessageNavigation;
